import cv2

def main():
    o = cv2.imread("10/1.bmp", 0)
    Sobe1X = cv2.Sobel(o, cv2.CV_64F, 2, 0)
    Sobe1Y = cv2.Sobel(o, cv2.CV_64F, 0, 2)
    Sobe1 = Sobe1X + Sobe1Y

    cv2.imshow("original", o)
    cv2.imshow("Sobe1X", Sobe1X)
    cv2.imshow("Sobe1Y", Sobe1Y)
    cv2.imshow("Sobe1", Sobe1)

    cv2.waitKey()
    cv2.destroyAllWindows()

if __name__ == "__main__":
    main()